body.directory-page {
  min-height: 100vh;
  background:
    linear-gradient(135deg, rgba(2, 11, 15, 0.94), rgba(31, 31, 31, 0.92)),
    url('../images/trials.jpg');
  background-size: cover;
  background-position: center;
  background-attachment: fixed;
  color: #ffffff;
}


/* ============================================
   Directory Pages
   ============================================ */
.directory-shell {
  width: min(1440px, calc(100% - 48px));
  margin: 0 auto;
  padding: 44px 0 60px;
}

.directory-hero {
  min-height: 320px;
  padding: 34px;
  border: 1px solid rgba(208, 162, 74, 0.36);
  border-radius: 8px;
  background:
    linear-gradient(100deg, rgba(2, 11, 15, 0.92), rgba(2, 11, 15, 0.38)),
    url('../images/skydive.jpg');
  background-size: cover;
  background-position: center;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
}

.directory-hero h1,
.news-feature h2,
.directory-panel h2 {
  font-family: Impact, "Arial Black", "Roboto Condensed", sans-serif;
  font-weight: 900;
  line-height: 1;
  letter-spacing: 0;
  text-transform: uppercase;
  text-shadow: 0 2px 0 rgba(190, 138, 45, 0.34);
}

.directory-hero h1 {
  max-width: 860px;
  font-size: clamp(52px, 8vw, 112px);
}

.directory-hero p:not(.eyebrow) {
  max-width: 680px;
  margin-top: 18px;
  color: rgba(255, 255, 255, 0.82);
  font-size: 17px;
  font-weight: 700;
}

.directory-toolbar {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-top: 22px;
  padding: 16px;
  border: 1px solid rgba(208, 162, 74, 0.24);
  border-radius: 8px;
  background: rgba(2, 11, 15, 0.82);
}

.directory-toolbar label {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: rgba(255, 255, 255, 0.72);
  font-size: 12px;
  font-weight: 900;
  text-transform: uppercase;
}

.directory-toolbar select {
  min-height: 38px;
  min-width: 180px;
  border: 1px solid rgba(208, 162, 74, 0.42);
  background: rgba(255, 255, 255, 0.06);
  color: #ffffff;
  font-size: 12px;
  font-weight: 900;
  padding: 0 12px;
  text-transform: uppercase;
}

.directory-toolbar option {
  background: #1f1f1f;
  color: #ffffff;
}

.athlete-grid,
.news-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 22px;
  margin-top: 24px;
}

.athlete-card,
.news-card,
.directory-panel,
.rankings-table-wrap {
  border: 1px solid rgba(208, 162, 74, 0.24);
  border-radius: 8px;
  background: rgba(2, 11, 15, 0.88);
  box-shadow: 0 20px 48px rgba(0, 0, 0, 0.28);
  overflow: hidden;
}

.athlete-card[hidden],
.rankings-table tr[hidden] {
  display: none;
}

.athlete-card__image,
.news-card__image,
.news-feature__media {
  min-height: 230px;
  background-size: cover;
  background-position: center;
}

.athlete-card__image--trail,
.news-card__image--trail {
  background-image: url('../images/trail_running.jpg');
}

.athlete-card__image--kayak {
  background-image: url('../images/kayaking.jpg');
}

.athlete-card__image--cycling,
.news-card__image--cycling {
  background-image: url('../images/cycling.jpg');
}

.athlete-card__image--sky,
.news-card__image--sky {
  background-image: url('../images/skydive.jpg');
}

.athlete-card__image--swim {
  background-image: url('../images/swimming.jpg');
}

.athlete-card__image--marathon {
  background-image: url('../images/marathon.jpg');
}

.athlete-card__image--scuba {
  background-image: url('../images/scuba.jpg');
}

.athlete-card__image--rappel {
  background-image: url('../images/rappel.jpg');
}

.athlete-card__body,
.news-card {
  padding: 20px;
}

.athlete-card h2,
.news-card h2 {
  margin-top: 12px;
  color: #ffffff;
  font-size: 24px;
  line-height: 1.1;
  text-transform: uppercase;
}

.athlete-card p,
.news-card p,
.directory-panel p,
.news-feature p {
  margin-top: 9px;
  color: rgba(255, 255, 255, 0.72);
  font-size: 14px;
  font-weight: 700;
  line-height: 1.4;
}

.athlete-card dl {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1px;
  margin-top: 18px;
  background: rgba(208, 162, 74, 0.18);
}

.athlete-card dl div {
  padding: 11px;
  background: rgba(255, 255, 255, 0.06);
}

.athlete-card dt {
  color: rgba(255, 255, 255, 0.62);
  font-size: 10px;
  font-weight: 900;
  text-transform: uppercase;
}

.athlete-card dd {
  margin-top: 4px;
  color: #d0a24a;
  font-size: 12px;
  font-weight: 900;
}

.athlete-card-link,
.news-card-link {
  min-height: 34px;
  margin-top: 0;
  padding: 0 14px;
}

.related-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 16px;
}

.rankings-table-wrap {
  margin-top: 24px;
  overflow-x: auto;
}

.rankings-table {
  width: 100%;
  border-collapse: collapse;
  min-width: 860px;
}

.rankings-table th,
.rankings-table td {
  padding: 17px;
  border-bottom: 1px solid rgba(208, 162, 74, 0.18);
  text-align: left;
}

.rankings-table th {
  color: #d0a24a;
  font-size: 12px;
  font-weight: 900;
  text-transform: uppercase;
}

.rankings-table td {
  color: rgba(255, 255, 255, 0.84);
  font-size: 14px;
  font-weight: 800;
}

.table-link {
  color: #d0a24a;
  text-decoration: none;
}

.table-link:hover,
.table-link:focus-visible {
  color: #ffffff;
  outline: none;
}

.news-feature {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 0;
  margin-top: 24px;
  border: 1px solid rgba(208, 162, 74, 0.24);
  border-radius: 8px;
  background: rgba(2, 11, 15, 0.88);
  overflow: hidden;
}

.news-feature > div:last-child {
  padding: 28px;
  align-self: center;
}

.news-feature h2 {
  color: #ffffff;
  font-size: 42px;
}

.news-feature__media {
  display: flex;
  align-items: flex-end;
  padding: 20px;
  background-image: linear-gradient(180deg, transparent, rgba(2, 11, 15, 0.78)), url('../images/kayaking.jpg');
}

.news-feature__media span {
  padding: 8px 10px;
  background: #d0a24a;
  color: #020b0f;
  font-size: 12px;
  font-weight: 900;
  text-transform: uppercase;
}

.directory-panel {
  margin-top: 24px;
  padding: 24px;
}

.directory-panel h2 {
  color: #ffffff;
  font-size: 34px;
}

